const { defineConfig } = require('@vue/cli-service')
const {VantResolver} = require('unplugin-vue-components/resolvers')
const ComponentsPlugin = require('unplugin-vue-components/webpack')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack:{
    // 配置别名
    resolve:{
      alias:{
        'assets':'@/assets',
        'components':'@/components',
        'network': '@/network',
        'utils':'@/utils',
        'views':'@/views'

      }
    },
    plugins:[
      ComponentsPlugin({
        resolvers:[VantResolver()],
      }),
    ],
  },

  publicPath:'./'
})
